package com.itany.shop.util;

import java.sql.Connection;
import java.sql.PreparedStatement;

/**
 * @Author:石小俊
 * 回调函数,暴露Connection,用于创建对应的PreparedStatement
 */
public interface PreparedStatementCreator {

    /**
     * 根据实际需求创建对应的PreparedStatement
     * @param conn  连接
     * @return      创建完成的PreparedStatement对象
     * @throws Exception
     */
    public PreparedStatement createPreparedStatement(Connection conn) throws Exception;
}
